﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yunzuan.Foundation.Attributes;
using Yunzuan.Foundation.Entities;

namespace CloudDiamonds.Models.DBModels
{
    [Table(TableName = "index_appointment", PrimaryKey = "ID")]
    public class Index_Appointment : BaseEntity
    {
        public Index_Appointment()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private string _name;
        /// <summary>
        ///预约人名字
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { this.ChangeNotify<string>("Name", value, ref _name); }
        }
        private string _tel;
        /// <summary>
        ///预约人电话
        /// </summary>
        public string Tel
        {
            get { return _tel; }
            set { this.ChangeNotify<string>("Tel", value, ref _tel); }
        }
        private DateTime? _arrivetime;
        /// <summary>
        ///预约时间,到店时间
        /// </summary>
        public DateTime? ArriveTime
        {
            get { return _arrivetime; }
            set { this.ChangeNotify<DateTime?>("ArriveTime", value, ref _arrivetime); }
        }
        private string _remark;
        /// <summary>
        ///留言
        /// </summary>
        public string Remark
        {
            get { return _remark; }
            set { this.ChangeNotify<string>("Remark", value, ref _remark); }
        }
        private DateTime? _addtime ;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime? AddTime
        {
            get { return _addtime; }
            set { this.ChangeNotify<DateTime?>("AddTime", value, ref _addtime); }
        }
        #endregion
    }
}